-- GENERATED SPELL FOR [Charred Ancient] --


function spell0_4028(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(12747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4028', 11500, 1)
end

function Sorts_4028(pUnit, Event)
local choix_sorts_4028 = math.random(0, 0)
if choix_sorts_4028 == 0 then
pUnit:RegisterEvent('spell0_4028', 1, 1)
end
end

function mob4028_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4028', math.random(1500, 3000), 1)
end

function mob4028_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4028_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4028_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4028, 1, 'mob4028_Action')
RegisterUnitEvent(4028, 2, 'mob4028_Leave')
RegisterUnitEvent(4028, 3, 'mob4028_Kill')
RegisterUnitEvent(4028, 4, 'mob4028_Die')
